package com.lmuse.xmr.foodspotting;

import android.app.Application;
import android.content.Context;

import cn.bmob.v3.Bmob;

public class FoodApplication extends Application {

    private static Context context;

    /**
     * MainActivity 跳转任一Fragment的标志
     */
    private int MainFlag;

    /**
     * 调用photoPicker的是Cover还是Content
     */
    private int PhotoPickerFlag;

    @Override
    public void onCreate() {
        super.onCreate();
        FoodApplication.context = getApplicationContext();

        //初始化Bmob
        Bmob.initialize(this, "Your Application ID");
    }

    /**
     * 全局Context
     * @return
     */
    public static Context getAppContext() {
        return FoodApplication.context;
    }

    public int getMainFlag() {
        return MainFlag;
    }

    public void setMainFlag(int mainFlag) {
        MainFlag = mainFlag;
    }

    public int getPhotoPickerFlag() {
        return PhotoPickerFlag;
    }

    public void setPhotoPickerFlag(int photoPickerFlag) {
        PhotoPickerFlag = photoPickerFlag;
    }
}
